package com.wayhome.srpingbootmybatis.doctor.controller;

import com.wayhome.srpingbootmybatis.doctor.service.DrScoreClrOptinsService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@RestController
@RequestMapping(value = "/web/drScore")
public class DrScoreInfoClrOptinsController {

    @Resource
    private DrScoreClrOptinsService drScoreClrOptinsService;

    @PostMapping(value = "/exportDrScoreInfoClrOptions")
    public void exportDrScoreInfoClrOptions(@RequestParam("file") MultipartFile file, HttpServletResponse response) throws IOException {

        drScoreClrOptinsService.exportDrScoreInfoClrOptions(file, response);


    }

}
